<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"/>
	<title>{block name="title"}管理后台{/block}</title>
	<meta name="renderer" content="webkit"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<meta name="format-detection" content="telephone=no"/>
    
    <link rel="stylesheet" href="{$htmlStaticPath}/layui/css/layui.css?v={$htmlVersion}" media="all" />
    <link rel="stylesheet" href="{$htmlStaticPath}/css/public.css?v={$htmlVersion}" media="all" />
	
	<script type="text/javascript" src="{$htmlStaticPath}/jquery.js?v={$htmlVersion}"></script>
	<script type="text/javascript" src="{$htmlStaticPath}/layui/layui.js?v={$htmlVersion}"></script>
    {block name="css"}
    
    {/block}
</head>
<body class="childrenBody">
<script>
// 全局配置
var JS_config = {
    'base'       : "{$htmlStaticPath}",
    'url_upload' : '/sys/Upload/image' // 图片上传接口   
     
};
layui.config({
	base : "{$htmlStaticPath}/lib/",
    version : "{$htmlVersion}"
}).extend({
});

// 动态加载脚本
function loadJS(scripts,callback) {
   if(typeof(scripts) != "object") var scripts = [scripts];
   var HEAD = document.getElementsByTagName("head").item(0) || document.documentElement, s = new Array(), loaded = 0;
   for(var i=0; i<scripts.length; i++) {
       s[i] = document.createElement("script");
       s[i].setAttribute("type","text/javascript");
       s[i].onload = s[i].onreadystatechange = function() { //Attach handlers for all browsers
           if(!/*@cc_on!@*/0 || this.readyState == "loaded" || this.readyState == "complete") {
               loaded++;
               this.onload = this.onreadystatechange = null; this.parentNode.removeChild(this); 
               if(loaded == scripts.length && typeof(callback) == "function") callback();
           }
       };
       s[i].setAttribute("src",scripts[i]);
       HEAD.appendChild(s[i]);
   }
}

</script>
{block name="main"}
<!--主内容-->
{/block}

{block name="script"}
<!--脚本-->
{/block}
</body>
</html>